package edu.tyut.ncp.dao;

import edu.tyut.ncp.entity.User;
import org.springframework.stereotype.Component;

import java.util.List;
@Component

public interface UserDao {
    List<User> selectAll();

    int insertSelective(User user);

    int updateByPrimaryKeySelective(User user);

    int deleteByPrimaryKey(String userName);

    User selectByPrimaryKey(String userName);

    String selectAddressByName(String ownName);
}
